﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NabTwitter.Models;

namespace Twitter
{
    public partial class Connexion : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        { 
            
        }

        public static Boolean isConnected()
        {
            return System.Web.Security.Membership.GetUser() != null ? true : false;
        }

        public static String getConnectedUserName()
        {
            return System.Web.Security.Membership.GetUser() != null ? System.Web.Security.Membership.GetUser().UserName : "";
        }
    }
}